package sv.com.renacempleo.dto.red;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgCatalogo;

@Entity
@Table(name = "red_oferta_otros_requisitos")
public class RedOfertaOtrosRequisitos implements Serializable{

	private static final long serialVersionUID = 5342106481501066598L;
	
	@Id
	@Column(name = "red_ooreq_id", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redOfertaOtrosRequisitosId;
	@ManyToOne
	@JoinColumn(name = "red_ofe_id", nullable = false)
	private RedOferta redOferta;
	@ManyToOne
	@JoinColumn(name = "ctg_oreq_id", nullable = false)
	private CtgCatalogo ctgOtrosRequisitos;
	public Long getRedOfertaOtrosRequisitosId() {
		return redOfertaOtrosRequisitosId;
	}
	public void setRedOfertaOtrosRequisitosId(Long redOfertaOtrosRequisitosId) {
		this.redOfertaOtrosRequisitosId = redOfertaOtrosRequisitosId;
	}
	public RedOferta getRedOferta() {
		return redOferta;
	}
	public void setRedOferta(RedOferta redOferta) {
		this.redOferta = redOferta;
	}
	public CtgCatalogo getCtgOtrosRequisitos() {
		return ctgOtrosRequisitos;
	}
	public void setCtgOtrosRequisitos(CtgCatalogo ctgOtrosRequisitos) {
		this.ctgOtrosRequisitos = ctgOtrosRequisitos;
	}
}
